package com.jymj.dao;

import com.jymj.entity.ComplaintsEntity;
import com.jymj.entity.ComplaintsFile;
import com.jymj.entity.dto.ComplaintsDto;
import com.jymj.entity.vo.ComplaintsVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by ${lc} on 2021/6/21.
 */
@Mapper
public interface ComplaintsDao {
    List<ComplaintsEntity> queryList(ComplaintsDto complaintsDto);

    int save(ComplaintsEntity complaintsEntity);

    int update(ComplaintsEntity complaintsEntity);

    int delete(@Param("ids") Long... ids);

    List<ComplaintsVo> statistical(ComplaintsDto complaintsDto);

    void saveFile(ComplaintsFile complaintsFile);

    void deleteFile(Integer id);

    ComplaintsFile queryObject(Integer id);

    void updateFile(@Param("ids") Integer[] ids, @Param("id") Long id);

    List<ComplaintsFile> queryFiles(@Param("ids") Long[] ids);
}
